<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/erp/T_course_schedule.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/erp/T_course_schedule.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'c_id',
                    footer: "Foots",
                    cnName: 't_course_schedule',
                    name: 'T_course_schedule',
                    url: "/T_course_schedule/",
                    sortName: "c_id"
                },
                extend: extend,
                editFormFields: {"c_card_face_id":"","c_status":"","c_start_time":"","c_snowseason":"","c_sku_price":"","c_sku_id":"","c_sku":"","c_remark":"","c_phone":"","c_order_item_id":"","c_order_id":"","c_teaching_population":"","c_id":"","c_guide_price":"","c_finished_time":"","c_end_time":"","c_customer_name":"","c_create_time":"","c_course_voucher_id":"","c_course_id":"","c_coach_name":"","c_coach_id":"","c_card_id":"","c_guide_time":"","c_technology_type":""},
                editFormOptions: [[{"title":"c_card_face_id","field":"c_card_face_id","type":"text"},
                               {"title":"状态  None, Guiding, Finished, Cancel","field":"c_status","type":"text"},
                               {"title":"开始时间","field":"c_start_time","disabled":true,"type":"datetime"}],
                              [{"title":"雪季","required":true,"field":"c_snowseason","type":"datetime"},
                               {"title":"sku价格","field":"c_sku_price","type":"text"},
                               {"title":"c_sku_id","field":"c_sku_id","type":"text"}],
                              [{"title":"c_sku","field":"c_sku","type":"text"},
                               {"title":"c_remark","field":"c_remark","type":"text"},
                               {"title":"c_phone","field":"c_phone","type":"text"}],
                              [{"title":"c_order_item_id","field":"c_order_item_id","type":"text"},
                               {"title":"c_order_id","field":"c_order_id","type":"text"},
                               {"title":"c_teaching_population","field":"c_teaching_population","type":"text"}],
                              [{"title":"c_id","required":true,"field":"c_id","disabled":true,"type":"text"},
                               {"title":"出导价格","field":"c_guide_price","type":"text"},
                               {"title":"归导时间","field":"c_finished_time","disabled":true,"type":"datetime"}],
                              [{"title":"结束时间","field":"c_end_time","disabled":true,"type":"datetime"},
                               {"title":"c_customer_name","field":"c_customer_name","type":"text"},
                               {"title":"创建时间","field":"c_create_time","disabled":true,"type":"datetime"}],
                              [{"title":"c_course_voucher_id","field":"c_course_voucher_id","type":"text"},
                               {"title":"c_course_id","field":"c_course_id","type":"text"},
                               {"title":"c_coach_name","field":"c_coach_name","type":"text"}],
                              [{"title":"c_coach_id","field":"c_coach_id","type":"text"},
                               {"title":"c_card_id","field":"c_card_id","type":"text"},
                               {"title":"出导时间","field":"c_guide_time","disabled":true,"type":"datetime"}],
                              [{"title":"教学类型","field":"c_technology_type","type":"text"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'c_card_face_id',title:'c_card_face_id',type:'string',width:120,align:'left',sortable:true},
                       {field:'c_status',title:'状态  None, Guiding, Finished, Cancel',type:'int',width:120,align:'left'},
                       {field:'c_start_time',title:'开始时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_snowseason',title:'雪季',type:'string',width:120,require:true,align:'left'},
                       {field:'c_sku_price',title:'sku价格',type:'decimal',width:120,align:'left'},
                       {field:'c_sku_id',title:'c_sku_id',type:'string',width:120,align:'left'},
                       {field:'c_sku',title:'c_sku',type:'string',width:120,align:'left'},
                       {field:'c_remark',title:'c_remark',type:'string',width:120,align:'left'},
                       {field:'c_phone',title:'c_phone',type:'string',width:120,align:'left'},
                       {field:'c_order_item_id',title:'c_order_item_id',type:'string',width:120,align:'left'},
                       {field:'c_order_id',title:'c_order_id',type:'string',width:120,align:'left'},
                       {field:'c_teaching_population',title:'c_teaching_population',type:'string',width:120,align:'left'},
                       {field:'c_id',title:'c_id',type:'string',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_guide_price',title:'出导价格',type:'decimal',width:120,align:'left'},
                       {field:'c_finished_time',title:'归导时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_end_time',title:'结束时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_customer_name',title:'c_customer_name',type:'string',width:120,align:'left'},
                       {field:'c_create_time',title:'创建时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_course_voucher_id',title:'c_course_voucher_id',type:'string',width:120,align:'left'},
                       {field:'c_course_id',title:'c_course_id',type:'string',width:120,align:'left'},
                       {field:'c_coach_name',title:'c_coach_name',type:'string',width:120,align:'left'},
                       {field:'c_coach_id',title:'c_coach_id',type:'string',width:120,align:'left'},
                       {field:'c_card_id',title:'c_card_id',type:'string',width:120,align:'left'},
                       {field:'c_guide_time',title:'出导时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_technology_type',title:'教学类型',type:'int',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
